package org.kms.pojo;

public class Parents {
    private Integer pCid;
    private Integer pid;
    private String pcName;
    private String pCmode;
    private String guanxi;
    private Integer pold;
    private String workUnit;

    public Integer getpCid() {
        return pCid;
    }

    public void setpCid(Integer pCid) {
        this.pCid = pCid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPcName() {
        return pcName;
    }

    public void setPcName(String pcName) {
        this.pcName = pcName;
    }

    public String getpCmode() {
        return pCmode;
    }

    public void setpCmode(String pCmode) {
        this.pCmode = pCmode;
    }

    public String getGuanxi() {
        return guanxi;
    }

    public void setGuanxi(String guanxi) {
        this.guanxi = guanxi;
    }

    public Integer getPold() {
        return pold;
    }

    public void setPold(Integer pold) {
        this.pold = pold;
    }

    public String getWorkUnit() {
        return workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Parents parents = (Parents) o;

        if (pCid != parents.pCid) return false;
        if (pid != null ? !pid.equals(parents.pid) : parents.pid != null) return false;
        if (pcName != null ? !pcName.equals(parents.pcName) : parents.pcName != null) return false;
        if (pCmode != null ? !pCmode.equals(parents.pCmode) : parents.pCmode != null) return false;
        if (guanxi != null ? !guanxi.equals(parents.guanxi) : parents.guanxi != null) return false;
        if (pold != null ? !pold.equals(parents.pold) : parents.pold != null) return false;
        if (workUnit != null ? !workUnit.equals(parents.workUnit) : parents.workUnit != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = pCid;
        result = 31 * result + (pid != null ? pid.hashCode() : 0);
        result = 31 * result + (pcName != null ? pcName.hashCode() : 0);
        result = 31 * result + (pCmode != null ? pCmode.hashCode() : 0);
        result = 31 * result + (guanxi != null ? guanxi.hashCode() : 0);
        result = 31 * result + (pold != null ? pold.hashCode() : 0);
        result = 31 * result + (workUnit != null ? workUnit.hashCode() : 0);
        return result;
    }
}
